package com.yanq.liancar.adapter;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/11/8  14:42
 *  @描述       ${TODO}
 */


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.NewUserBean;

import java.util.List;

public class NewUserAdapter extends BaseQuickAdapter<NewUserBean.DataBean,BaseViewHolder> {
    public NewUserAdapter(int layoutResId, @Nullable List<NewUserBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewUserBean.DataBean item) {

        helper.setText(R.id.tv_money,item.getCashcoupon_value())
                .setText(R.id.tv_small_type,item.getCashcoupon_name());

    }
}
